﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IChessEngine;

namespace ChessEngine.Basic
{
    public class ChsPiece : IChsPiece
    {
        private EChsPieceType type;
        private EChsPieceColor color;
        protected bool onPassant = false;
        public ChsPiece(EChsPieceType _type, EChsPieceColor _color)
        {
            type = _type;
            color = _color;
        }
        public EChsPieceType Type
        {
            get { return type; }
        }
        public EChsPieceColor Color
        {
            get { return color; }
        }
        public bool OnPassant
        {
            get { return onPassant; }
        }
        public virtual IChsPiece Clone()
        {
            ChsPiece returned = new ChsPiece(type, color);
            returned.onPassant = onPassant;
            return returned;
        }

    }
}
